/*
编写 : Hexh
时间 : 2012-6-26 15:52:08
*/
using System;
using System.Collections;
using System.Text;
using HMIS.FrameWork.DomainBase;

namespace HMIS.Infrastructure.Core.Entities
{
	/// <summary>
	///	the entity of InfraSms
	/// </summary>
	public class InfraSms : InputItem
	{

		#region Public Properties

		/// <summary>
		/// 对应Item
		/// </summary>
		public virtual string ItemId { get; set; }

		/// <summary>
		/// 接收号码
		/// </summary>
		public virtual string SendTo { get; set; }

		/// <summary>
		/// 发送时间
		/// </summary>
		public virtual DateTime SendTime { get; set; }

		/// <summary>
		/// 发送内容
		/// </summary>
		public virtual string SmsContent { get; set; }

		/// <summary>
		/// 状态
		/// </summary>
		public virtual int State { get; set; }


		#endregion

		public override string ToString()
		{
			return "发送" + (this.State > 0 ? "成功" : "失败") + ",号码:" + SendTo + ", 返回:" + Description + ".";
		}
	}
}
